import { request } from "./request"

//  授权
export function authorizations(data) {
	return request({
		url: '/api/authorizations',
		method: 'post',
		data
	})
}

//  校验 token 是否有效
export function verifyToken(data) {
	return request({
		url: '/grain-buds/member/verifyToken',
		method: 'post',
		data
	})
}

//  登录
export function login(data) {
	return request({
		url: '/grain-buds/member/login',
		method: 'post',
		data
	})
}

//  退出登录
export function loginout(data) {
	return request({
		url: '/grain-buds/member/logout',
		method: 'post',
		data,
		headerType:"application/x-www-form-urlencoded"
	})
}


